#include "ISNW_Text.h"
using namespace ISNW;

ISNW_Text::ISNW_Text()
{
	Init();
}

ISNW_Text::~ISNW_Text()
{
	Release();
}

ISNW_VOID ISNW_Text::Release()
{
}

ISNW_VOID ISNW_Text::Init()
{
	m_mesh.SetFormat(ISNW_Mesh::ISNW_MESH_FORMAT_TEXT);
}

ISNW_VOID ISNW_Text::Create()
{
	Init();
	m_mesh.Create();
}

ISNW_VOID ISNW_Text::Render()
{
	D3DXMATRIX transform;
	SetTransform(&transform);

	g_pdevice->SetTransform(D3DTS_WORLD,&transform);

//	m_texture.BeCurrTexture();
	m_material.BeCurrMaterial();

	m_mesh.Render();
}